Skip to content

[LLDB][GPU] Add a GPUActions option for sync initialization #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 18, 2025

Conversation

walter-erquinigo
Copy link
Collaborator

I'm experimenting with initializating asynchronously and I think it's a good idea to make sync initialization an option in the GPU Actions. Given that AMD was using this by default, I modified it accordingly.

I'm experimenting with initializating asynchronously and I think it's a
good idea to make sync initialization an option in the GPU Actions.
Given that AMD was using this by default, I modified it accordingly.
Copy link
Collaborator

@dmpots dmpots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

connection_info.connect_url, GetPluginNameStatic(), debugger,
*debugger.GetAsyncOutputStream(), gpu_target_sp.get(), error);
ProcessSP process_sp =
gpu_action.wait_synchronously_for_gpu_to_initialize
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Get this bool from connection_info:

connection_info.synchronous ? ...

@@ -386,6 +386,7 @@ std::optional<GPUActions> LLDBServerPluginAMDGPU::NativeProcessIsStopping() {
"launched successfully");
}
actions.connect_info = CreateConnection();
actions.wait_synchronously_for_gpu_to_initialize = true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be:

actions.connect_info ->synchronous = true;

@walter-erquinigo walter-erquinigo merged commit beceb3f into llvm-server-plugins Jul 18, 2025
5 checks passed
@walter-erquinigo walter-erquinigo deleted the clayborg/walter/sync branch July 18, 2025 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants